pub fn odd_fibnacci_sum(threshold: u32) -> u32 {
    let mut a = 1;
    let mut b = 1;
    let mut sum = 0;

    while a <= threshold {
        // 检查是否在指定范围内且是奇数
        if a % 2 != 0 {
            sum += a;
        }

        // 生成下一个斐波那契数
        let next = a + b;
        a = b;
        b = next;
    }

    sum
}
